// pages/indexinput/index.js
Page({
  data: {
    inputValue: '',
    puhsValue:'',
    arr:[],
    new:'',
    list:[{
      id:0,
      name:"lisi",
      age:20
    },
    {
      id:1,
      name:"zs",
      age:20
    },
    {
      id:2,
      name:"wq",
      age:20
    }]
    },
  bindKeyInput: function (e) {
    this.setData({
      inputValue: e.detail.value,
    })
    console.log(this.data.inputValue);
  },
  push(){
    this.setData({
      puhsValue: this.data.inputValue
    })
    this.data.arr.push(this.data.new)
    this.setData({
      arr: this.data.arr
    })
    this.setData({
      inputValue: '',
      new:''
    })
  }
})